.page {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 100px;
}

.content {
  padding: 20px 16px;
}

.warningSection {
  display: flex;
  align-items: flex-start;
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.warningIcon {
  width: 24px;
  height: 24px;
  background-color: #faad14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.warningText {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.conditionsList {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.conditionItem {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.conditionItem:last-child {
  margin-bottom: 0;
}

.conditionNumber {
  width: 24px;
  height: 24px;
  background-color: #1890ff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.conditionContent {
  flex: 1;
}

.conditionTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.conditionDesc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.buttonContainer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: white;
  border-top: 1px solid #f0f0f0;
}

.confirmationButton {
  background-color: #ff4d4f;
  border: none;
  border-radius: 8px;
  height: 48px;
  font-size: 16px;
  font-weight: 500;
  color: white;
}

.confirmationButton:active {
  background-color: #d9363e;
}

.confirmationButton:disabled {
  background-color: #d9d9d9;
  color: #999;
}

/* 短信验证弹出框样式 */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.smsModal {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modalTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 16px;
}

.modalMessage {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 8px;
}

.phoneNumber {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 24px;
}

.inputContainer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.smsInput {
  flex: 1;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  background-color: #fafafa;
}

.smsInput:focus {
  border-color: #1890ff;
  background-color: white;
}

.resendButton {
  background: none;
  border: none;
  color: #1890ff;
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.resendButton:disabled {
  color: #999;
  cursor: not-allowed;
}

.modalButtons {
  display: flex;
  gap: 12px;
}

.cancelButton {
  flex: 1;
  background-color: #f5f5f5;
  border: none;
  border-radius: 8px;
  height: 44px;
  font-size: 16px;
  color: #666;
}

.cancelButton:active {
  background-color: #e8e8e8;
}

.confirmButton {
  flex: 1;
  background-color: #1890ff;
  border: none;
  border-radius: 8px;
  height: 44px;
  font-size: 16px;
  color: white;
}

.confirmButton:active {
  background-color: #40a9ff;
}

/* 加载遮罩层样式 */
.loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loadingContainer {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 200px;
}

.loadingSpinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.loadingText {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 成功弹框样式 */
.successOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.successModal {
  background: #333;
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  animation: successFadeIn 0.3s ease-out;
}

.successIcon {
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: #4CAF50;
  margin-bottom: 20px;
  animation: successScale 0.4s ease-out 0.2s both;
}

.successText {
  font-size: 18px;
  color: white;
  font-weight: 600;
  text-align: center;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes successScale {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* 覆盖 antd-mobile 的默认样式 */
:global(.adm-input) {
  background-color: transparent;
}

:global(.adm-input:focus) {
  background-color: white;
}
